<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    //如果你的属性名和变量名是一样的话  可以省略

//    let {name:name,age:age} = {name:'奥术大师大所',age:10}
//    let {name,age} = {name:'奥术大师大所',age:10}

    let {name,age=10,list:[a,b,c,d]} = {name:'奥术大师大所',age:undefined,list:['js','node','vue','maven']}
    console.log(name,age,a,b,c,d)

    let x1,x2
//    {x1,x2} = {x1:'1',x2:'asdads'}
    ({x1,x2}) = {x1:'1',x2:'asdads'}


</script>
</body>
</html>